﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Domain.Core;
using Domain.Entities;
using Infrastructure.Core;

namespace DDD从零起步.Controllers
{
    public class CategoryController : Controller
    {
        IRepository<Category> iRepository;

        /// <summary>
        /// 私有方法
        /// </summary>
        bool GetCategory()
        {
            return true;
        }

        public CategoryController()
        {
            iRepository = new DbContextRepository<Category>(new Domain.Entities.backgroundEntities());
        }
        //
        // GET: /Category/
        public ActionResult Index()
        {
            return View();
        }


    }

}
